package state;

public class StateB implements State{

    private static final StateB instance = new StateB();

    @Override
    public void updateState(Context context) {
        System.out.println("当前状态B");
        context.setCurrentState(StateC.instance());
        System.out.println("更新为状态C");
    }

    public static StateB instance(){
        return instance;
    }
}
